/*
 * @Author: kanglang
 * @Date: 2021-02-09 14:00:20
 * @LastEditors: kanglang
 * @LastEditTime: 2021-04-28 14:12:48
 * @Description: 物流维修账户相关接口
 */

import { fetchGet, fetchPost, fetchDel, fetchPut, fetchPostImg, fetchPostUrl } from '../config';

export default {
  // 获取修理点
  getRepair(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/getRepair', params);
  },

  // 物流修理核销
  repairVerification(params) {
    return fetchPost('energy-api/api/v1/maintenance/caronwer/verification', params);
  },

  // 获取授权卡详情
  repairGetAuthById(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/getAuthById', params);
  },

  // 获取联盟商户id
  repairGetAllianceId(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/getAllianceId', params);
  },

  // 未核销返回提醒司机页面刷新二维码
  repairFailVerification(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/failVerification', params);
  },

  verification(params) {
    return fetchPost('energy-api/api/v1/maintenance/caronwer/verification', params);
  },

  /**
   *
   */

  // 已有维修卡
  pageOilEmpower(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/pageOilEmpower', params);
  },

  // 维修核销二维码
  maincode(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/maincode', params);
  },

  // 核销是否成功
  verificationSuccess(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/verificationSuccess', params);
  },

  // 车主交易记录
  pageTransaction(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/pageTransaction', params);
  },

  // 司机交易记录
  pageDriverTransaction(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/pageDriverTransaction', params);
  },

  //  授权信息分页
  pageOwnerAuthorization(params) {
    return fetchPost('energy-api/api/v1/maintenance/caronwer/pageOwnerAuthorization', params);
  },

  // 回收授权
  recycling(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/recycling', params);
  },

  // 车主授权
  ownerAuthorization(params) {
    return fetchPost('energy-api/api/v1/maintenance/caronwer/ownerAuthorization', params);
  },

  verificationTime(params) {
    return fetchGet('energy-api/api/v1/maintenance/caronwer/verificationTime', params);
  },
};
